package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Document("community_comment")
public class CommunityComment implements Serializable{
    //当前问题的
    @Id
    private String id;

    private Long askId;

    private Long aid;

    //当前问题回答的人
    private Long userId;
    private String nickname;
    private String headImgUrl;
    private String level;


    //评论回答人
    private Long itselfUser;
    private String itselfNickname;
    private String itselfHeadImgUrl;
    private String itselfLevel;

    //评论内容
    private String content;

    //当前时间
    private Date createTime;


//    private int replynum;  //攻略评论数
//    private int favornum; //收藏数
//    private int sharenum; //分享数
//    private int thumbsupnum; //点赞个数
}
